/*
 * @Author: yxiawen
 * @Date: 2022-05-12 15:25:39
 * @LastEditTime: 2022-05-13 15:09:57
 * @LastEditors: yxiawen
 * @Description:
 * @FilePath: /iceVite/src/routers/Backend/modules/backendRouters.ts
 */
import { lazy } from 'ice';

const BackendHome = lazy(() => import('@/pages/Backend/Home'));
const BackendDashboard = lazy(() => import('@/pages/Backend/Dashboard'));
const authMgt = lazy(() => import('@/pages/Backend/AuthMgt'));
const connectMgt = lazy(() => import('@/pages/Backend/ConnectMgt'));
const dictMgt = lazy(() => import('@/pages/Backend/DictMgt'));
const exportMgt = lazy(() => import('@/pages/Backend/ExportMgt'));
const knowledgeMgt = lazy(() => import('@/pages/Backend/KnowledgeMgt'));
const materialsMgt = lazy(() => import('@/pages/Backend/MaterialsMgt'));
const memberMgt = lazy(() => import('@/pages/Backend/MemberMgt'));
const menuMgt = lazy(() => import('@/pages/Backend/MenuMgt'));
const planeMgt = lazy(() => import('@/pages/Backend/PlaneMgt'));
const trainMgt = lazy(() => import('@/pages/Backend/TrainMgt'));

const backendRouter = [
  {
    path: '/home',
    exact: true,
    component: BackendHome,
  },
  {
    path: '/dashboard',
    component: BackendDashboard,
  },
  {
    path: '/authMgt',
    component: authMgt,
  },
  {
    path: '/connectMgt',
    component: connectMgt,
  },
  {
    path: '/dictMgt',
    component: dictMgt,
  },
  {
    path: '/exportMgt',
    component: exportMgt,
  },
  {
    path: '/knowledgeMgt',
    component: knowledgeMgt,
  },
  {
    path: '/materialsMgt',
    component: materialsMgt,
  },
  {
    path: '/memberMgt',
    component: memberMgt,
  },
  {
    path: '/menuMgt',
    component: menuMgt,
  },
  {
    path: '/planeMgt',
    component: planeMgt,
  },
  {
    path: '/trainMgt',
    component: trainMgt,
  },
];
export default backendRouter;
